Skip to content

fix: resolve production build failure (invalid JSON + missing .nvmrc)#1860

Merged
sanjay-kv merged 3 commits into
mainfrom
copilot/fix-latest-production-build-issue
Jun 5, 2026
Merged

fix: resolve production build failure (invalid JSON + missing .nvmrc)#1860
sanjay-kv merged 3 commits into
mainfrom
copilot/fix-latest-production-build-issue

Conversation

Copilot AI commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Description

Production build failing because Vercel detected Node.js version changed from "22.x" to "". Root cause: invalid JSON in package.json (missing comma) prevented the build system from reading engine configuration, and no .nvmrc existed to explicitly pin the Node.js version.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

Changes Made

  • package.json: Added missing comma after @typescript-eslint/parser entry (line 84). The invalid JSON caused the entire file to be unparseable by the build platform.
  • .nvmrc: Created with value 22 to explicitly specify Node.js version for build environments (Vercel, etc.).
-    "@typescript-eslint/parser": "^8.60.1"
+    "@typescript-eslint/parser": "^8.60.1",
     "autoprefixer": "^10.5.0",

Dependencies

  • No new dependencies. Node.js 22 was already in use (per engines field and prior build cache).

Checklist

  • My code follows the style guidelines of this project.
  • I have tested my changes across major browsers and devices
  • My changes do not generate new console warnings or errors .
  • I ran npm run build and attached screenshot(s) in this PR.
  • This is already assigned Issue to me, not an unassigned issue.

@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recode-website Ready Ready Preview, Comment Jun 5, 2026 5:20am

@sanjay-kv
sanjay-kv marked this pull request as ready for review June 5, 2026 05:19
Copilot AI changed the title [WIP] Fix the latest production build issue fix: resolve production build failure (invalid JSON + missing .nvmrc) Jun 5, 2026
Copilot AI requested a review from sanjay-kv June 5, 2026 05:20
@sanjay-kv
sanjay-kv merged commit 4cea535 into main Jun 5, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Latest production build is failing

2 participants